//
//  ViewController.m
//  K8彩票
//
//  Created by zhoubo on 2017/6/6.
//  Copyright © 2017年 zhoubo. All rights reserved.
//

#import "ViewController.h"
#import "MainTabbar.h"

#import "HomeVC.h"
#import "HallVC.h"
#import "MineVC.h"
#import "FindVC.h"
#import "Config.h"
#import "NewsHomeViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    CGRect frame = self.tabBar.frame;
    
    UIStoryboard* sb = [UIStoryboard storyboardWithName:@"NewsHome" bundle:nil];
    UIViewController* con = sb.instantiateInitialViewController;

    MainTabbar* mainTabbar = [[MainTabbar alloc]initWithController:self andChildControllers:@[[HomeVC new],con,[FindVC new],[MineVC new]]];
    self.mainTabbar = mainTabbar;

    mainTabbar.frame = frame;
    [self.tabBar removeFromSuperview];
    
    [self.view addSubview:mainTabbar];
  

    
}

-(void)showController:(NSInteger)index
{
    self.selectedIndex = index;
    

    
    NSLog(@"资讯 显示");
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
